home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib6 / v_08_06 / 8n06074a < prev    next >
Text File  |  1995-11-01  |  319b  |  16 lines

  1. *****Listing 5*****
  2.  
  3.    show_record(a_record)
  4.    /* Prints out a record */
  5.    struct s_record a_record;
  6.        {
  7.        int i;
  8.        char *pc;
  9.        pc = (char *) &a_record;
  10.        for (i=0; i < NUMBER_FIELDS; i++)
  11.            {
  12.            printf("%s\n", pc + record_offsets[i]);
  13.            }
  14.        }
  15.  
  16.